<%@ page import="pers.lance.webdemo1.bean.Book" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: LILA3
  Date: 7/12/2018
  Time: 10:22 AM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%! int x = 100; %>
<%
    int m = 100;
    Book book = (Book) request.getAttribute("book");
    if (book != null) {
        out.print(book.getName());
    }
%>
<c:forEach items="${books}" var="bk">

    <tr>
        <td>${bk.id}</td>
        <td>${bk.name}</td>
    </tr>
</c:forEach>
<h2>

</h2>
</body>
</html>
